export default {
    path:'/movie',
    name:'Movie',
    component:() => import('@/views/Movie/index.vue'),
    children:[
        {
            path:'city',
            name:'City',
            component: () => import('@/components/City/index.vue')
        },
        {
            path:'nowplaying',
            name:'nowPlaying',
            component: () => import('@/components/NowPlaying/index.vue')
        },
        {
            path:'comminsoon',
            name:'ComminSoon',
            component: () => import('@/components/ComminSoon/index.vue')
        },
        {
            path:'search',
            name:'Search',
            component: () => import('@/components/Search/index.vue')
        },
        {
            path:'detail/1/:movieId',
            components: {
                default: () => import('@/components/NowPlaying/index.vue'),
                detail: () => import('@/views/Movie/detail')
            },
            props: {
                detail:true
            }
        },
        {
            path:'detail/2/:movieId',
            components: {
                default: () => import('@/components/ComminSoon/index.vue'),
                detail: () => import('@/views/Movie/detail')
            },
            props: {
                detail:true
            }
        },
        {
            path:'/',
            redirect:'/movie/nowplaying'
        },
        
    ]
}